package domain

import (
	"time"
)

type Articles struct {
	ArticleId      int       `xorm:"not null pk autoincr comment('主键') INT"`
	Title          string    `xorm:"VARCHAR(1000)"`
	TitleFontStyle int       `xorm:"default 0 SMALLINT"`
	TitleImgSrc    string    `xorm:"VARCHAR(500)"`
	Label          int       `xorm:"default 0 INT"`
	OriginalTitle  string    `xorm:"VARCHAR(255)"`
	OriginalAuthor string    `xorm:"VARCHAR(50)"`
	Origin         string    `xorm:"VARCHAR(5)"`
	KeyWords       string    `xorm:"VARCHAR(255)"`
	Heat           int       `xorm:"default 1 SMALLINT"`
	Summary        string    `xorm:"TEXT"`
	PublishDate    time.Time `xorm:"DATETIME"`
	SortDate       time.Time `xorm:"DATETIME"`
	ColumnLevel    string    `xorm:"VARCHAR(500)"`
	Species        string    `xorm:"VARCHAR(1000)"`
	Body           string    `xorm:"MEDIUMTEXT"`
	Publisher      string    `xorm:"VARCHAR(50)"`
	Editor         string    `xorm:"VARCHAR(50)"`
	Comment        int       `xorm:"SMALLINT"`
	Views          int       `xorm:"default 0 INT"`
	Shares         int       `xorm:"default 0 INT"`
	PublishStatus  int       `xorm:"default 0 TINYINT(1)"`
	TopStatus      int       `xorm:"default 0 TINYINT(1)"`
	VoiceAddr      string    `xorm:"VARCHAR(300)"`
	IsSpecial      int       `xorm:"default 0 TINYINT(1)"`
	IsOriginal     int       `xorm:"default 0 INT"`
	Auditor        string    `xorm:"VARCHAR(50)"`
	IsPushed       int       `xorm:"default 0 TINYINT(1)"`
	IsKeyMsg       int       `xorm:"default 0 TINYINT(1)"`
	Editions       string    `xorm:"TEXT"`
	LabelOrder     int       `xorm:"default 0 INT"`
	SkId           string    `xorm:"VARCHAR(50)"`
}
